import { RouteConfig } from 'react-router-config';
import { Route } from '@ant-design/pro-layout/lib/typings';
import { HomeTwoTone, IdcardTwoTone, LayoutTwoTone, ReconciliationTwoTone } from '@ant-design/icons';
import React from 'react';
import Patient from '@/pages/patient';
import Product from '@/pages/product';
import Subject from '@/pages/subject';
import Home from '@/pages/home';

const routes = [
    {
        key:'/home',
        path: '/home',
        name: '系统首页',
        component: Home,
        icon: React.createElement(HomeTwoTone)
    },
    {
        key:'/patient',
        path: '/patient',
        name: '患者信息',
        component: Patient,
        icon: React.createElement(IdcardTwoTone)
    },
] as Array<RouteConfig & Route>;
const adminRoutes = [
    {
        key:'/product',
        path: '/product',
        name: '产品配置',
        component: Product,
        icon: React.createElement(LayoutTwoTone)
    },
    {
        key:'/subject',
        path: '/subject',
        name: '医生账号',
        component: Subject,
        icon: React.createElement(ReconciliationTwoTone)
    },
] as Array<RouteConfig & Route>;
export default routes
export { adminRoutes }
